<div class="forum-path">
<?php echo $this->Html->link('Forum index', array('controller' => 'forums', 'action' => 'index')); ?> » 
<?php echo $this->Html->link($forumName, array('controller' => 'forums', 'action' => 'view', $forumID)); ?> » 
<?php echo $this->Html->link($topicSubject, array('controller' => 'forums', 'action' => 'topic', $topicID, $forumID)); ?>
</div>
<div class="forum-topic-title">Edit topic</div>
<?php 
echo $this->Form->create('ForumTopic', array('url'=> '../forums/editpost/'.$postID.'/'.$topicID.'/'.$forumID,'class'=>'form-horizontal well')); 
?>
  <div class="field">
    <label>Subject</label>
    <?php echo $this->Form->input('ForumTopic.subject', array("label"=>false)); ?>
    <div class="error-message"><?php echo $this->Form->error('ForumTopic.subject', 'Topic subject is required!'); ?> </div>
  </div>
  <div class="field">
    <label>Message</label>
    <?php echo $this->Form->input('ForumPost.text', array('rows' => 10,"label"=>false)); ?>
    <div class="error-message"> <?php echo $this->Form->error('ForumPost.text', 'Message is required'); ?> </div>
  </div>
  <div class="button">
    <input name="submit" type="submit" value="Submit" />
  </div>
</form>